#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'tyh'
__mtime__ = '18-10-1'
# code is far away from bugs with the god animal protecting ~
"""

# 设置短信过期时间
SMS_CODE_REDIS_EXPIRES = 120
# 设置发送短信间隔
SEND_SMS_CODE_INTERVAL = 60

# QQ认证需要的3个参数，ID-KEY-回调的网址
QQ_CLIENT_ID = '101474184'
QQ_CLIENT_SECRET = 'c6ce949e04e12ecc909ae6a8b09b637c'
QQ_REDIRECT_URI = 'http://www.meiduo.site:8080/oauth_callback.html'

# QQ Token 过期时间，单位秒
SAVE_QQ_USER_TOKEN_EXPIRES = 300
# 邮件认证过期时间
VERIFY_EMAIL_TOKEN_EXPIRES = 3600 * 24
# 用户保存地址最大数量
USER_ADDRESS_COUNTS_LIMIT = 10
# 用户保存历史记录数
USER_BROWSING_HISTORY_COUNTS_LIMIT = 10

# 用户购物车cookie保存时间
CART_COOKIE_EXPIRES = 3600 * 24 * 7